function [tp,fn,fp,tn]=test_bounded(data,beta,c,f)
    X = data(:,1:(size(data,2)-1));
	y = data(:,size(data,2));
    [n,d] = size(X);
    
    guesses = zeros(n,1);
    sigmac=1/(1+exp(-c));
    sigmaf=1/(1+exp(-f));
    for i=1:n
        x_i = X(i,:);
        if p_bounded(x_i,beta,c,f) > .5
            guesses(i) = 1;
        end
    end
    
    [tp,fn,fp,tn] = confmatrix(guesses,y);
end